package com.zju.DoctorGo.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;

@Data
@TableName(value = "appointment")
public class Appointment {
    @TableId(value = "appointmentId")
    private int appointmentId;

    private Long patientId;
    private Long doctorId;
    private Timestamp appointmentTime;
    private Status status;
    private String patientName;  // 新增的字段
    private String doctorName;   // 新增的字段
    private Timestamp createdTime;
    private String description; // 病情描述

    public enum Status {
        PENDING, // 待处理
        CANCELED, // 已取消
        FINISHED // 已完成
    }
}
